package com.taoge.controller;

import com.taoge.zhhd.mapper.IMapper2;
import com.taoge.zhzd.mapper.IMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weipt
 * @description 测试
 * @date 2024/7/20 14:26
 */
@RestController
public class TestController {
    @Autowired
    private IMapper mapper;

    @Autowired
    private IMapper2 mapper2;

    @GetMapping("/test")
    public int getAmount(){
        System.out.println(mapper.getAmount());
        System.out.println(mapper2.getAmount2());
        return 1;
    }
}
